﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ToolBar
{
    public partial class BarItem
    {
        public BarItem(object index, bool isbtn = false)
        {
            Index = index;
            this.isbtn = isbtn;
        }
        public BarItem(object index, string name, string helpString, string macro, object flyoutButton, string IconName, bool isbtn = true)
        {
            Index = index;
            Name = name;
            HelpString = helpString;
            Macro = macro;
            FlyoutButton = flyoutButton;
            SmallIconName = IconName;
            LargeIconName = IconName;
            this.isbtn = isbtn;
        }

        /// <summary>
        /// 索引值
        /// </summary>
        public object Index { set; get; }
        /// <summary>
        /// 名字/提示信息
        /// </summary>
        public string Name { set; get; }
        /// <summary>
        /// 说明
        /// </summary>
        public string HelpString { set; get; }
        /// <summary>
        /// 执行的命令
        /// </summary>
        public string Macro { set; get; }
        /// <summary>
        /// 是否是弹出式按钮
        /// </summary>
        public object FlyoutButton { set; get; }
        /// <summary>
        /// 小按钮图片
        /// </summary>
        public string SmallIconName { set; get; }
        /// <summary>
        /// 大按钮图片
        /// </summary>
        public string LargeIconName { set; get; }
        /// <summary>
        /// 是否是按钮
        /// </summary>
        public bool isbtn { set; get; }
    }
}
